<script>
import base from '../form'
import ActionModal from './modal'
export default {
    extends: base,
    data() {
        return {
            actionInline: true,
            actionProto: {
                name: '添加',
                icon: 'plus'
            },
            buttonType: 'primary'
        }
    },
    created() {
        if (this.model.code !== 'add') {
            this.buttonType = 'ghost'
            this.actionModel.icon = null
        }
    },
    components: {
        ActionModal
    }
}
</script>
